/*******************************************************************************
 * Copyright (c) 2000, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package cuongnh.project.japanesediary.vocabulary.ui.editor.vocabulary.page.category;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;

import cuongnh.project.japanesediary.vocabulary.common.CommonServices;
/**
 * @author dejan
 * 
 * To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Generation - Code and Comments
 */
public class VocabularyCategoryMDPage extends FormPage {
	private VocabularyCategoryBlock block;
	public VocabularyCategoryMDPage(FormEditor editor, String id,
			CommonServices commonServices) {
		super(editor, id, "Vocabulary categories");
		block = new VocabularyCategoryBlock(this, commonServices);		
	}
	protected void createFormContent(final IManagedForm managedForm) {
		FormToolkit toolkit = managedForm.getToolkit();
		final ScrolledForm form = managedForm.getForm();
		form.setText("Vocabulary's categories");
		toolkit.decorateFormHeading(form.getForm());
		block.createContent(managedForm);
	}
	
}